package com.lgcns.android.otmeal.rest;

import org.simpleframework.xml.Element;
import org.simpleframework.xml.Root;

/**
 * @author Jiyun Kang
 */
@Root(name="menu")
public class Menu 
{
	@Element
	private String name;
	
	@Element
	private String category;
	
	public Menu() { }
	
	public Menu(String name, String category)
	{
		this.name = name;
		this.category = category;
	}

	public String getName() 
	{
		return name;
	}
	
	public void setName(String name) 
	{
		this.name = name;
	}
	
	public String getCategory() 
	{
		return category;
	}

	public void setCategory(String category) 
	{
		this.category = category;
	}
	
	public String getFormattedName()
	{
		return this.getName() + " (" + this.getCategory() + ")";
	}
}
